#define _CRT_SECURE_NO_WARNINGS
#include"SList.h"

void test1()
{
	SListNode* s = NULL;
	
	SListPushBack(&s, 1);
	SListPushBack(&s, 2);
	SListPushBack(&s, 3);
	SListPushBack(&s, 5);
	SListPushBack(&s, 6);
	SListPushFront(&s, 7);
	SListPrint(s);

	SListPopBack(&s);
	SListPrint(s);

	SListPopFront(&s);
	SListPrint(s);

	SListEraseAfter(s->next->next);
	SListPrint(s);

	SLTDateType find = 5;
	printf("%p \n",SListFind(s, find));
	find = 60;
	printf("%p \n", SListFind(s, find));

	SListDestroy(s);
}

int main()
{
	test1();
	return 0;
}